<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>接口文档</title>
    <style>
        body{ padding: 0 0 100px 0; }
        .red{ color: red;}
        .box{ border-bottom:3px dashed #f60; }
        .form_title { color: green; padding: 10px 0;}
        .errorcode{width: 70px;float: left; display: block; color: #e30016;}
        .go_a{ color:#fff; background: #999;  width: 100px; height: 40px; line-height: 40px; padding: 10px;text-decoration:none; }
    </style>
    <base href="http://139.129.108.163:9011/index.php/Home/Api/" />
</head>
<body>
<h1>api地址：http://139.129.108.163:9011/index.php/Home/Api/</h1>
<div class="red">
    返回格式：{"code":"0","msg":"\u767b\u5f55\u6210\u529f","data":[...]} <br>
    <div class="desc">
        字段说明：<br>
        <div class="desc">code ： 0为成功  大于1为错误 个别情况会返回大于1的正数，用于不同的错误判断  </div>
        <div class="desc" style="padding: 0 0 10px 0;">
            <ul>
                <li> <span class="errorcode">1</span>普通错误 </li>
            </ul>
        </div>
        <div class="desc">msg ： 提示信息 </div>
        <div class="desc">data ： 返回数据 不同接口会返回不同的data</div>
    </div>
</div>
<br>

<div class="box getTypeList">
    <h3>
        1. 获取总店列表
    </h3>
    <p>
        url:  getTypeList   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","page":"1"} <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="getTypeList" method="post">
            json：<input type="text" name="json" value='{"uid":"2","page":"1"} ' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box getTypeInfo">
    <h3>
        2. 获取分类信息
    </h3>
    <p>
        url:  getTypeInfo   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","type_id":"2"} <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
        
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="getTypeInfo" method="post">
            json：<input type="text" name="json" value='{"uid":"2","type_id":"2"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box getPromotion">
    <h3>
        3. 获取促销信息
    </h3>
    <p>
        url:  getPromotion   <br>
        传值：post传值<br>
        键：json<br>
        值：{"sid":"2"} <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
        
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="getPromotion" method="post">
            json：<input type="text" name="json" value='{"sid":"2"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box bindmembers">
    <h3>
        4. 绑定会员卡
    </h3>
    <p>
        url:  bindmembers   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","shop_id":"2","type_id":"2","cardnum":"131354","name":"test","IDcard":"1324657986541674648","mobile":"13246579812"} <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>

    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="bindmembers" method="post">
            json：<input type="text" name="json" value='{"uid":"2","shop_id":"2","type_id":"2","cardnum":"131354","name":"test","IDcard":"1324657986541674648","mobile":"13246579812"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box getAlltype">
    <h3>
        5. 获取全部分类
    </h3>
    <p>
        url:  getAlltype   <br>
        传值：post传值<br>
        键：json<br>
        值：{} <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="getAlltype" method="post">
            json：<input type="text" name="json" value='{}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box getCouponList">
    <h3>
        6. 获取卡券列表
    </h3>
    <p>
        url:  getCouponList   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","page":"1"} <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="getCouponList" method="post">
            json：<input type="text" name="json" value='{"uid":"2","page":"1"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box tickCoupon">
    <h3>
        7. 领取卡券
    </h3>
    <p>
        url:  tickCoupon   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","nickname":"不知道有什么用","coupon_id":"1","num":"1"} <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="tickCoupon" method="post">
            json：<input type="text" name="json" value='{"uid":"2","nickname":"不知道有什么用","coupon_id":"1","num":"1"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box getAllCoupon">
    <h3>
        8. 全部卡券
    </h3>
    <p>
        url:  getAllCoupon <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","shop_id":"0"} <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
        
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="getAllCoupon" method="post">
            json：<input type="text" name="json" value='{"uid":"2","shop_id":"0"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box jifenList">
    <h3>
        9. 获取积分兑换信息
    </h3>
    <p>
        url:  jifenList   <br>
        传值：post传值<br>
        键：json<br>
        值：{"sid":"2"} <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
        
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="jifenList" method="post">
            json：<input type="text" name="json" value='{"sid":"2"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box appUpdate">
    <h3>
        10. 检查更新
    </h3>
    <p>
        url:  appUpdate   <br>
        传值：post传值<br>
        键：json<br>
        值： {"verson_code":"2016010100","type":"1"}<br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
        
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="appUpdate" method="post">
            json：<input type="text" name="json" value='{"verson_code":"2016010100","type":"1"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box editMemberCard">
    <h3>
        11. 修改会员卡信息
    </h3>
    <p>
        url:  editMemberCard   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","type_id":"1","data":{"cardnum":"haha","name":"ceshi","mobile":"123"}} <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
        
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="editMemberCard" method="post">
            json：<input type="text" name="json" value='{"uid":"2","type_id":"1","data":{"cardnum":"haha","name":"ceshi","mobile":"123"}}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box delMemberCard">
    <h3>
        12. 删除会员卡
    </h3>
    <p>
        url:  delMemberCard   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","type_id":"1"} <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
        
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="delMemberCard" method="post">
            json：<input type="text" name="json" value='{"uid":"2","type_id":"1"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box getMemberCardInfo">
    <h3>
        13. 获取会员卡信息
    </h3>
    <p>
        url:  getMemberCardInfo   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","type_id":"1"} <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
        
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="getMemberCardInfo" method="post">
            json：<input type="text" name="json" value='{"uid":"2","type_id":"1"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box addBrowseLog">
    <h3>
        14. 记录阅读信息
    </h3>
    <p>
        url:  addBrowseLog   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","news_id":"1"} <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
        
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="addBrowseLog" method="post">
            json：<input type="text" name="json" value='{"uid":"2","news_id":"1"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box getBrowseLog">
    <h3>
        15. 获取阅读信息
    </h3>
    <p>
        url:  getBrowseLog   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","page":"1"} <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
        
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="getBrowseLog" method="post">
            json：<input type="text" name="json" value='{"uid":"2","page":"1"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box addBid">
    <h3>
        16. 我要爆料
    </h3>
    <p>
        url:  addBid   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","title":"ceshi","content":"neirog","mobile":"123456","address":"hahha"},image1:图片流 …… <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
        
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="addBid" method="post" enctype="multipart/form-data">
            json：<input type="text" name="json" value='{"uid":"2","title":"ceshi","content":"neirog","mobile":"123456","address":"hahha"}' size="100">
            <input type="file" name="image1" />
            <input type="file" name="image2" />
            <input type="file" name="image3" />
            <input type="file" name="image4" />
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box getBid">
    <h3>
        17. 我的爆料
    </h3>
    <p>
        url:  getBid   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2"} <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
        
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="getBid" method="post" enctype="multipart/form-data">
            json：<input type="text" name="json" value='{"uid":"2"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box addFeedback">
    <h3>
        18. 意见反馈
    </h3>
    <p>
        url:  addFeedback   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","title":"ceshi","content":"neirog"}<br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="addFeedback" method="post">
            json：<input type="text" name="json" value='{"uid":"2","title":"ceshi","content":"neirog"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box addprivatecard">
    <h3>
        19. 添加自定义会员卡
    </h3>
    <p>
        url:  addprivatecard   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","cardnum":"131354","shop_name":"cehsiha","name":"test","IDcard":"1324657986541674648","mobile":"13246579812"},"logo":图片流<br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="addprivatecard" method="post" enctype="multipart/form-data">
            json：<input type="text" name="json" value='{"uid":"2","cardnum":"131354","shop_name":"cehsiha","name":"test","IDcard":"1324657986541674648","mobile":"13246579812"}' size="100"><br />
            <input type="file" name="logo" />
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box getAlertAdv">
    <h3>
        20. 获取广告列表
    </h3>
    <p>
        url:  getAlertAdv   <br>
        传值：post传值<br>
        键：json<br>
        值：{"position":"4"}<br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="getAlertAdv" method="post">
            json：<input type="text" name="json" value='{"position":"4"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box delCoupon">
    <h3>
        21. 删除卡券
    </h3>
    <p>
        url:  delCoupon   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"4","coupon":"1,2"}<br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="delCoupon" method="post">
            json：<input type="text" name="json" value='{"uid":"4","coupon":"1,2"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>


<div class="box shopLogin">
    <h3>
        22. 商家登录
    </h3>
    <p>
        url:  shopLogin   <br>
        传值：post传值<br>
        键：json<br>
        值：{"username":"test","password":"111111"}<br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="shopLogin" method="post">
            json：<input type="text" name="json" value='{"username":"test","password":"111111"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box getExpenselog">
    <h3>
        23. 获取消费记录
    </h3>
    <p>
        url:  getExpenselog   <br>
        传值：post传值<br>
        键：json<br>
        值：{"card_id":"2","shop_id":"0","page":"1"}<br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="getExpenselog" method="post">
            json：<input type="text" name="json" value='{"card_id":"2","shop_id":"0","page":"1"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box setTagsByUid">
    <h3>
        24. 设置自定义分类
    </h3>
    <p>
        url:  setTagsByUid   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","tags":"0"}<br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="setTagsByUid" method="post">
            json：<input type="text" name="json" value='{"uid":"2","tags":"0"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box getTagsByUid">
    <h3>
        24. 获取自定义分类
    </h3>
    <p>
        url:  getTagsByUid   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2"}<br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="getTagsByUid" method="post">
            json：<input type="text" name="json" value='{"uid":"2"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box salesmanLogin">
    <h3>
        25. 业务员登录
    </h3>
    <p>
        url:  salesmanLogin   <br>
        传值：post传值<br>
        键：json<br>
        值：{"username":"test","password":"111111"}<br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="salesmanLogin" method="post">
            json：<input type="text" name="json" value='{"username":"test","password":"111111"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box getMyShopList">
    <h3>
        26. 业务员获取添加的店铺列表
    </h3>
    <p>
        url:  getMyShopList   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2"}<br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="getMyShopList" method="post">
            json：<input type="text" name="json" value='{"uid":"2"}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box getAllTypeList">
    <h3>
        27. 业务员获取已有总店列表
    </h3>
    <p>
        url:  getAllTypeList   <br>
        传值：post传值<br>
        键：json<br>
        值：{}<br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="getAllTypeList" method="post">
            json：<input type="text" name="json" value='{}' size="100">
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box addShopBySalesman">
    <h3>
        28. 业务员添加新的店铺
    </h3>
    <p>
        url:  addShopBySalesman   <br>
        传值：post传值<br>
        键：json<br>
        值：{"uid":"2","username":"jiekouceshi","shop_name":"接口测试店铺","shop_addr":"接口测试店铺地址","type_id":"-1","type_name":"接口测试总店","shop_color":"ffffff","shop_cart_note":"接口测试会员卡说明","zhutui":"1","is_supermarket":"1"}<br>
    <div class="desc">
        字段说明：<br>
        <div class="desc">uid ： 业务员id，必传</div>
        <div class="desc">username ： 用于登录所添加的店铺的店铺后台用户名，必传</div>
        <div class="desc">shop_name ： 添加的店铺名称，必传</div>
        <div class="desc">shop_addr ： 添加的店铺地址，必传</div>
        <div class="desc">type_id ： 所属的总店id，可不传，不传或传'-1'时为添加新的总店信息</div>
        <div class="desc">type_name ： 总店名称，添加新总店时必传，选择已有总店时不需要</div>
        <div class="desc">shop_color ： 总店颜色色值，添加新总店时必传，选择已有总店时不需要</div>
        <div class="desc">shop_cart_note ： 总店会员卡说明，添加新总店时必传，选择已有总店时不需要</div>
        <div class="desc">zhutui ： 是否主推该店铺，默认为0,可不传</div>
        <div class="desc">is_supermarket ： 是否为超市类型，默认为1,可不传</div>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="addShopBySalesman" method="post" enctype="multipart/form-data">
            json：<input type="text" name="json" value='{"uid":"2","username":"jiekouceshi","shop_name":"接口测试店铺","shop_addr":"接口测试店铺地址","type_id":"-1","type_name":"接口测试总店","shop_color":"ffffff","shop_cart_note":"接口测试会员卡说明","zhutui":"1","is_supermarket":"1"}' size="100"><br>
            <input type="file" name="logo" >
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

<div class="box test">
    <h3>
        20. test
    </h3>
    <p>
        url:  test   <br>
    <div class="desc">
        字段说明：<br>
    </div>
    <br>
    <div class="desc">
        返回值：<br>
    </div>
    <div class="ceshi">
        <div class="form_title">表单提交测试：</div>
        <form action="test" method="post" enctype="multipart/form-data">
            json：<input type="text" name="json" value='{"uid":"2","cardnum":"131354","shop_name":"cehsiha","name":"test","IDcard":"1324657986541674648","mobile":"13246579812"}' size="100"><br />
            <input type="file" name="image1" />
            <input type="file" name="image2" />
            <input type="file" name="image3" />
            <input type="submit" value="提交">
        </form>
    </div>
    </p>
</div>

</body>
</html>